<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>用户</title>
    <link rel="stylesheet" href="__PUBLIC__/Leader/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/index.css" />
    <style type="text/css">
        .order-list a {
            position: relative;
        }
        .order-list span {
            float: right;
            margin-right: 20px;
        }
        .nav-container .item{
            display:none;
        }
        .nav-container .item.active,
        .nav-tabs .item.active{
            display:block;
        }
    </style>
</head>
<body>
<include file="Index/head"/>
<div class="wrapper main-wrapper wrapper-content ">
    <div class="page-menubar">
        <div class="menu-header">系统管理</div>
        <ul class="order-list">
            <li>
                <a href="{:U('Useradmin/userinfo')}">系统管理员</a>
            </li>
            <li >
                <a href="{:U('Useradmin/Adduser')}">添加用户</a>
            </li>
            <li class="active">
                <a href="{:U('pay/paysetting')}">系统设定</a>
            </li>
        </ul>
    </div>
    <!--主要内容-->
    <div class="page-content" style="display: block;">
        <!--内容标题-->

        <div class="panel panel-default" style="margin-top: 20px;">
            <div class="panel-body">
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <ul class="nav nav-tabs">
                            <li role="presentation" class="item active"><a href="#">网站信息</a></li>
                            <li role="presentation" class="item"><a href="#">平台基本信息</a></li>
                            <li role="presentation" class="item"><a href="#">平台运营规模</a></li>
                            <li role="presentation" class="item"><a href="#">平台支付信息</a></li>
                            <li role="presentation" class="item"><a href="#">公司经营许可信息</a></li>
                            <li role="presentation" class="item"><a href="#">平台服务机构</a></li>
                            <li role="presentation" class="item"><a href="#">运价信息</a></li>
                        </ul>
                        <div class="nav-container">
                            <!--司机的基本信息-->
                            <div class="item active">
                            <form id="tab" >
                                <div class="form-group">
                                    <label>appid：</label>
                                    <input type="text" value="{$us.appid}" name="appid" class="form-control">
                                    <label>appsecret：</label>
                                    <input type="hidden" value="{$us.id}" name="id" class="form-control">
                                    <input type="text" value="{$us.appsecret}" name="appsecret" class="form-control">
                                    <label>Encodingaeskey：</label>
                                    <input type="text" value="{$us.encodingaeskey}" name="encodingaeskey" class="form-control">
                                    <label>Token:</label>
                                    <input type="text" value="{$us.token}" name="token" class="form-control">
                                    <label>商户号：</label>
                                    <input type="text" value="{$us.partnerid}" name="partnerid" class="form-control">
                                    <label>商户秘钥：</label>
                                    <input type="text" value="{$us.partnerkey}" name="partnerkey" class="form-control">
                                    <label>商户名称：</label>
                                    <input type="text" value="{$us.merchant}" name="merchant" class="form-control">
                                    <label>线上服务费：(%)</label>
                                <input type="text" value="{$us.tixianfeilv}" name="tixianfeilv" class="form-control">

                                <label>线下服务费：(%)</label>
                                <input type="text" value="{$us.offline}" name="offline" class="form-control">

                                <label>服务费1：(%)</label>
                                <input type="text" value="{$us.offline1}" name="offline1" class="form-control">

                                <label>服务费2：(%)</label>
                                <input type="text" value="{$us.offline2}" name="offline2" class="form-control">

                                <label>服务费3：(%)</label>
                                <input type="text" value="{$us.offline3}" name="offline3" class="form-control">

                                    <label>下单通知人Openid：</label>
                                    <input type="text" value="{$us.admin_openid}" name="admin_openid" class="form-control">
                                    <label>下单通知模板：</label>
                                    <input type="text" value="{$us.ordertemplate}" name="ordertemplate" class="form-control">
                                    <label>客户通知模板：</label>
                                    <input type="text" value="{$us.tztemplate}" name="tztemplate" class="form-control">
                                    <label>支付通知模板：</label>
                                    <input type="text" value="{$us.xdtemplate}" name="xdtemplate" class="form-control">
                                    <br />
                                    <button  type="button" class="btn btn-primary" onclick="tj()">修改</button>
                                </div>
                            </form>
                            </div>


                            <div class="item">
                                <form id="tab1" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="{$config['id']}" name="id" class="form-control">-->
                                        <input type="text" value="{$config['companyid']}" name="companyid" class="form-control">
                                        <label>公司名称：</label>
                                        <input type="text" value="{$config['companyname']}" name="companyname" class="form-control">
                                        <label>统一社会信用代码：</label>
                                        <input type="text" value="{$config['identifier']}" name="identifier" class="form-control">
                                        <label>注册地行政区划代码:</label>
                                        <input type="text" value="{$config['address']}" name="address" class="form-control">
                                        <label>经营范围：</label>
                                        <input type="text" value="{$config['businessscope']}" name="businessscope" class="form-control">
                                        <label>通信地址：</label>
                                        <input type="text" value="{$config['contactaddress']}" name="contactaddress" class="form-control">
                                        <label>经营业户经济类型：</label>
                                        <input type="text" value="{$config['economictype']}" name="economictype" class="form-control">
                                        <label>注册资本：</label>
                                        <input type="text" value="{$config['regcapital']}" name="regcapital" class="form-control">
                                        <label>法人代表姓名：</label>
                                        <input type="text" value="{$config['legalname']}" name="legalname" class="form-control">
                                        <label>法人代表身份证号：</label>
                                        <input type="text" value="{$config['legalid']}" name="legalid" class="form-control">
                                        <label>法人代表电话：</label>
                                        <input type="text" value="{$config['legalphone']}" name="legalphone" class="form-control">
                                        <label>法人代表身份证扫描件文件编号：</label>
                                        <input type="text" value="{$config['legalphoto']}" name="legalphoto" class="form-control">
                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <if condition="$config['state'] eq '0' ">selected="selected"</if>>正常</option>
                                            <option value="1" <if condition="$config['state'] eq '1' ">selected="selected"</if>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <if condition="$config['flag'] eq 1">selected="selected"</if>>新增</option>
                                            <option value="2" <if condition="$config['flag'] eq 2">selected="selected"</if>>更新</option>
                                            <option value="3" <if condition="$config['flag'] eq 3">selected="selected"</if>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="{$config['updatetime']}" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="config()">修改</button>
                                    </div>
                                </form>
                            </div>


                            <div class="item">
                                <form id="tab2" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <input type="text" value="{$maintain.CompanyId}" name="CompanyId" class="form-control">
                                        <label>平台注册网约车辆数：</label>
                                        <input type="text" value="{$maintain.vehiclenum}" name="vehiclenum" class="form-control">
                                        <label>平台注册车辆：</label>
                                        <input type="text" value="{$maintain.drivernum}" name="drivernum" class="form-control">
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <if condition="$maintain['flag'] eq 1">selected="selected"</if>>新增</option>
                                            <option value="2" <if condition="$maintain['flag'] eq 2">selected="selected"</if>>更新</option>
                                            <option value="3" <if condition="$maintain['flag'] eq 3">selected="selected"</if>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="{$maintain.updatetime}" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="maintain()">修改</button>
                                    </div>
                                </form>
                            </div>
                            <div class="item">
                                <form id="tab3" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="{$config['id']}" name="id" class="form-control">-->
                                        <input type="text" value="{$config['companyid']}" name="companyid" class="form-control">
                                        <label>支付机构名称：</label>
                                        <input type="text" value="{$payinfo['payname']}" name="payname" class="form-control">
                                        <label>支付业务许可证编号：</label>
                                        <input type="text" value="{$payinfo['payid']}" name="payid" class="form-control">
                                        <label>支付业务类型:</label>
                                        <input type="text" value="{$payinfo['paytype']}" name="paytype" class="form-control">
                                        <label>业务覆盖范围：</label>
                                        <input type="text" value="{$payinfo['payscope']}" name="payscope" class="form-control">
                                        <label>备付金存管银行：</label>
                                        <input type="text" value="{$payinfo['preparebank']}" name="preparebank" class="form-control">
                                        <label>结算周期（天）：</label>
                                        <input type="text" value="{$payinfo['countdate']}" name="countdate" class="form-control" placeholder="7">
                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <if condition="$payinfo['state'] eq '0' ">selected="selected"</if>>正常</option>
                                            <option value="1" <if condition="$payinfo['state'] eq '1' ">selected="selected"</if>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <if condition="$payinfo['flag'] eq 1">selected="selected"</if>>新增</option>
                                            <option value="2" <if condition="$payinfo['flag'] eq 2">selected="selected"</if>>更新</option>
                                            <option value="3" <if condition="$payinfo['flag'] eq 3">selected="selected"</if>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="{$payinfo['updatetime']}" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="payinfo()">修改</button>
                                    </div>
                                </form>
                            </div>
                            <div class="item">
                                <form id="tab4" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="{$config['id']}" name="id" class="form-control">-->
                                        <input type="text" value="{$config['companyid']}" name="companyid" class="form-control">
                                        <label>网络预约出租汽车经营许可证号：</label>
                                        <input type="text" value="{$buslicense['certificate']}" name="certificate" class="form-control">
                                        <label>经营区域：</label>
                                        <input type="text" value="{$buslicense['oprationarea']}" name="oprationarea" class="form-control">
                                        <label>公司名称:</label>
                                        <input type="text" value="{$buslicense['ownername']}" name="ownername" class="form-control">
                                        <label>发证机构名称：</label>
                                        <input type="text" value="{$buslicense['organization']}" name="organization" class="form-control">
                                        <label>有效期起：</label>
                                        <input type="date" value="{$buslicense['startdate']}" name="startdate" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>有效期止：</label>
                                        <input type="date" value="{$buslicense['stopdate']}" name="stopdate" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>初次发证日期：</label>
                                        <input type="date" value="{$buslicense['certifydate']}" name="certifydate" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <if condition="$buslicense['state'] eq '0' ">selected="selected"</if>>正常</option>
                                            <option value="1" <if condition="$buslicense['state'] eq '1' ">selected="selected"</if>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <if condition="$buslicense['flag'] eq 1">selected="selected"</if>>新增</option>
                                            <option value="2" <if condition="$buslicense['flag'] eq 2">selected="selected"</if>>更新</option>
                                            <option value="3" <if condition="$buslicense['flag'] eq 3">selected="selected"</if>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="{$buslicense['updatetime']}" name="updatetime" class="form-control" >
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="buslicense()">修改</button>
                                    </div>
                                </form>
                            </div>
                            <div class="item">
                                <form id="tab5" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="{$config['id']}" name="id" class="form-control">-->
                                        <input type="text" value="{$config['companyid']}" name="companyid" class="form-control">
                                        <label>服务机构名称：</label>
                                        <input type="text" value="{$seragency['servicename']}" name="servicename" class="form-control">
                                        <label>服务机构代码：</label>
                                        <input type="text" value="{$seragency['serviceno']}" name="serviceno" class="form-control">
                                        <label>服务机构地址:</label>
                                        <input type="text" value="{$seragency['detailaddress']}" name="detailaddress" class="form-control">
                                        <label>机构负责人姓名：</label>
                                        <input type="text" value="{$seragency['responsiblename']}" name="responsiblename" class="form-control">
                                        <label>机构负责人电话：</label>
                                        <input type="text" value="{$seragency['responsiblephone']}" name="responsiblephone" class="form-control">
                                        <label>机构管理人姓名：</label>
                                        <input type="text" value="{$seragency['managername']}" name="managername" class="form-control">
                                        <label>机构管理人电话：</label>
                                        <input type="text" value="{$seragency['managerphone']}" name="managerphone" class="form-control">
                                        <label>机构紧急联系人电话：</label>
                                        <input type="text" value="{$seragency['contactphone']}" name="contactphone" class="form-control">
                                        <label>行政文书送达邮寄地址：</label>
                                        <input type="text" value="{$seragency['mailaddress']}" name="mailaddress" class="form-control">
                                        <label>服务机构设立日期：</label>
                                        <input type="date" value="{$seragency['createdate']}" name="createdate" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <if condition="$seragency['state'] eq '0' ">selected="selected"</if>>正常</option>
                                            <option value="1" <if condition="$seragency['state'] eq '1' ">selected="selected"</if>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <if condition="$seragency['flag'] eq 1">selected="selected"</if>>新增</option>
                                            <option value="2" <if condition="$seragency['flag'] eq 2">selected="selected"</if>>更新</option>
                                            <option value="3" <if condition="$seragency['flag'] eq 3">selected="selected"</if>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="{$seragency['updatetime']}" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="seragency()">修改</button>
                                    </div>
                                </form>
                            </div>
                            <div class="item">
                                <form id="tab6" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="{$config['id']}" name="id" class="form-control">-->
                                        <input type="text" value="{$config['companyid']}" name="companyid" class="form-control">
                                        <label>运价类型编码：</label>
                                        <input type="text" value="{$fare['faretype']}" name="faretype" class="form-control">
                                        <label>运价类型说明：</label>
                                        <input type="text" value="{$fare['faretypenote']}" name="faretypenote" class="form-control">

                                        <label>运价有效期起:</label>
                                        <input type="date" value="{$fare['farevalidon']}" name="farevalidon" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>运价有效期止：</label>
                                        <input type="date" value="{$fare['farevalidoff']}" name="farevalidoff" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">

                                        <label>起步价：</label>
                                        <input type="text" value="{$fare['startfare']}" name="startfare" class="form-control">
                                        <label>起步里程：</label>
                                        <input type="text" value="{$fare['startmile']}" name="startmile" class="form-control">
                                        <label>计程单价（按公里）：</label>
                                        <input type="text" value="{$fare['unitpricepermile']}" name="unitpricepermile" class="form-control">
                                        <label>计程单价（按分钟）：</label>
                                        <input type="text" value="{$fare['unitpriceperminute']}" name="unitpriceperminute" class="form-control">
                                        <label>单程加价单价：</label>
                                        <input type="text" value="{$fare['upprice']}" name="upprice" class="form-control">
                                        <label>单程加价公里：</label>
                                        <input type="text" value="{$fare['uppricestartmile']}" name="uppricestartmile" class="form-control">
                                        <label>营运早高峰时间起：</label>
                                        <input type="text" value="{$fare['morningpeaktimeon']}" name="morningpeaktimeon" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>营运早高峰时间止：</label>
                                        <input type="text" value="{$fare['morningpeaktimeoff']}" name="morningpeaktimeoff" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>营运晚高峰时间起：</label>
                                        <input type="text" value="{$fare['eveningpeaktimeon']}" name="eveningpeaktimeon" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>营运晚高峰时间止：</label>
                                        <input type="text" value="{$fare['eveningpeaktimeoff']}" name="eveningpeaktimeoff" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>其他运营高峰时间起：</label>
                                        <input type="text" value="{$fare['otherpeaktimeon']}" name="otherpeaktimeon" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>其他运营高峰时间止：</label>
                                        <input type="text" value="{$fare['otherpeaktimeoff']}" name="otherpeaktimeoff" class="form-control" placeholder="{$buslicense['updatetiem']|default=time()|date='Ymd',###}">
                                        <label>高峰时间单程加价单价：</label>
                                        <input type="text" value="{$fare['peakunitprice']}" name="peakunitprice" class="form-control">
                                        <label>高峰时间单程加价公里：</label>
                                        <input type="text" value="{$fare['peakpricestartmile']}" name="peakpricestartmile" class="form-control">
                                        <label>低速计时加价（按分钟）：</label>
                                        <input type="text" value="{$fare['lowspeedpriceperminute']}" name="lowspeedpriceperminute" class="form-control">
                                        <label>夜间费（按公里）：</label>
                                        <input type="text" value="{$fare['nightpricepermile']}" name="nightpricepermile" class="form-control">
                                        <label>夜间费（按分钟）：</label>
                                        <input type="text" value="{$fare['nightpriceperminute']}" name="nightpriceperminute" class="form-control">
                                        <label>其他加价金额：</label>
                                        <input type="text" value="{$fare['otherprice']}" name="otherprice" class="form-control">

                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <if condition="$fare['state'] eq '0' ">selected="selected"</if>>正常</option>
                                            <option value="2" <if condition="$fare['state'] eq '1' ">selected="selected"</if>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <if condition="$fare['flag'] eq 1">selected="selected"</if>>新增</option>
                                            <option value="2" <if condition="$fare['flag'] eq 2">selected="selected"</if>>更新</option>
                                            <option value="3" <if condition="$fare['flag'] eq 3">selected="selected"</if>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="{$fare['updatetime']}" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="fare()">修改</button>
                                    </div>
                                </form>
                            </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script src="__PUBLIC__/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/Leader/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    function tj(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/pay/Paysetting",

            cache: false,
            data: $('#tab').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function config(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getConfig",

            cache: false,
            data: $('#tab1').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function maintain(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getMaintain",

            cache: false,
            data: $('#tab2').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function payinfo(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getPayinfo",

            cache: false,
            data: $('#tab3').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function buslicense(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getBuslicense",

            cache: false,
            data: $('#tab4').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function seragency(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getSeragency",

            cache: false,
            data: $('#tab5').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function fare(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getFare",

            cache: false,
            data: $('#tab6').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    $('.nav-tabs').on('click','.item',function(){
        var $this = $(this);
        var i = $this.index();
        if(!$this.hasClass('active')){
            $this.addClass('active').siblings().removeClass('active');
            $('.nav-container').children().eq(i).addClass('active').siblings().removeClass('active');
        }
    })
</script>


</html>